﻿using System;
using System.Collections.Generic;
using System.Text;
using KKCai.App.DAL.DaoImpl;

namespace KKCai.Web.Page.Support
{
    public class View : BasePage
    {
        public override string GetTemplatePath()
        {
            return "support/view.htm";
        }

        public override IDictionary<string, object> GetPageData()
        {
            int id = GetIntUrlParam("id");

            ArticleDao dao = new ArticleDao();

            Core.VelocityDictionary dict = new KKCai.Core.VelocityDictionary();

            dict.Add("Article", dao.Get(id));
            dict.Add("Types", new TypeDao().Get(1).Children);

            return dict;
        }
    }
}
